package 私有接口方法;

public interface MyInterface {
    default void defaultMethod1() {
        System.out.println("Default Method 1");
        privateMethod();
    }

    default void defaultMethod2() {
        System.out.println("Default Method 2");
        privateMethod();
    }

    private void privateMethod() {
        System.out.println("Private Method");
    }
}

 class MyClass implements MyInterface {
    public static void main(String[] args) {
        MyClass myClass = new MyClass();
        myClass.defaultMethod1();
        myClass.defaultMethod2();
    }
}
